// 2013-7-29下午05:56:03  net.betou.trade.main.dao.NewsDao.java

package net.betou.trade.main.dao;

import net.betou.common.hibernate3.Updater;
import net.betou.common.page.Pagination;
import net.betou.trade.entity.main.News;

/**
 * 公告DAO 
 * @author 叶装装
 */
public interface NewsDao{

	public News save( News bean );
	
	public News updateByUpdater( Updater< News > updater );
	
	public News deleteById( Integer id );
	
	public News findById( Integer id );
	
	public News findMyNews( Integer id, Integer selfId );
	
	public Pagination getPage( Integer selfId, String searchProperty, String searchValue, String orderProperty, String orderDirection, int pageNo, int pageSize );
	
	public Pagination getPageByCriteria( String searchProperty, String searchValue, String orderProperty, String orderDirection, int pageNo, int pageSize, String sql );
	
	
}
